# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-dominate
pkgver=2.8.0
pkgrel=0
pkgdesc="Library for creating and manipulating HTML documents using an elegant DOM API"
url="https://github.com/Knio/dominate/"
arch="noarch"
license="LGPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Knio/dominate/archive/$pkgver.tar.gz
	fix-tests.patch
	"
builddir="$srcdir/dominate-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
d550e775fe7d5f98e1388d4d25397a6dac4a0576f501adf6caa8c903184900a7a9a2d75f4b39a0ee9af217364cec0d4a3e777edba3bf001d4b7c7f7fe5adaf18  py3-dominate-2.8.0.tar.gz
12da0971349f54cb36a1ecaa7940a8bc242bf25636cca6637eb3a07d4862c870494f59b9e524f1c4ce2e1c82df12020aa10648727d79ce07505c536ee9631ffd  fix-tests.patch
"
